package com.onenine.app.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.ArrayList;
import java.util.List;

public class CommentParent extends SpcCount implements MultiItemEntity {

    private String commentPkId;
    private String userId;
    private String nickName;
    private String photo;
    private String date;
    private String comment;
    private List<CommentSub> commentSub;
    private int cType;
    private int sex;
    private boolean bln;
    private boolean isSubExpand;//子评论是否已全部展开，用于本地判断

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public List<CommentSub> getCommentSub() {
        return commentSub == null ? new ArrayList<>() : commentSub;
    }

    public void setCommentSub(List<CommentSub> commentSub) {
        this.commentSub = commentSub;
    }

    public String getUserId() {
        return userId == null ? "" : userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public boolean isBln() {
        return bln;
    }

    public void setBln(boolean bln) {
        this.bln = bln;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getCommentPkId() {
        return commentPkId == null ? "" : commentPkId;
    }

    public void setCommentPkId(String commentPkId) {
        this.commentPkId = commentPkId;
    }

    public int getcType() {
        return cType;
    }

    public void setcType(int cType) {
        this.cType = cType;
    }

    @Override
    public int getItemType() {
        return cType;
    }

    public boolean isSubExpand() {
        return isSubExpand;
    }

    public void setSubExpand(boolean subExpand) {
        isSubExpand = subExpand;
    }
}
